package base.enumtest.fenfa;

public class Rock implements EnumItem{

	public Outcome compete(EnumItem it) {
		return it.eval(this);
	}

	public Outcome eval(Paper p) {
		return Outcome.WIN;
	}

	public Outcome eval(Rock r) {
		return Outcome.DRAWN;
	}

	public Outcome eval(Scissors s) {
		return Outcome.LOSE;
	}
	public String toString() {
		return"rock";
	}
}
